package com.leyou.user.mapper;

import com.leyou.user.pojo.Address;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;

public interface AddressMapper extends Mapper<Address> {

    @Update("UPDATE tb_address SET is_default = 0 WHERE user_id = #{userId}")
    void updatesetDefaultAddressbyUserId(Long userId);
}
